package com.shangdiao.sd_server.generator.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SdParttimeReviewExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SdParttimeReviewExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReviewPIdIsNull() {
            addCriterion("REVIEW_P_ID is null");
            return (Criteria) this;
        }

        public Criteria andReviewPIdIsNotNull() {
            addCriterion("REVIEW_P_ID is not null");
            return (Criteria) this;
        }

        public Criteria andReviewPIdEqualTo(Integer value) {
            addCriterion("REVIEW_P_ID =", value, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdNotEqualTo(Integer value) {
            addCriterion("REVIEW_P_ID <>", value, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdGreaterThan(Integer value) {
            addCriterion("REVIEW_P_ID >", value, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("REVIEW_P_ID >=", value, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdLessThan(Integer value) {
            addCriterion("REVIEW_P_ID <", value, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdLessThanOrEqualTo(Integer value) {
            addCriterion("REVIEW_P_ID <=", value, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdIn(List<Integer> values) {
            addCriterion("REVIEW_P_ID in", values, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdNotIn(List<Integer> values) {
            addCriterion("REVIEW_P_ID not in", values, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdBetween(Integer value1, Integer value2) {
            addCriterion("REVIEW_P_ID between", value1, value2, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andReviewPIdNotBetween(Integer value1, Integer value2) {
            addCriterion("REVIEW_P_ID not between", value1, value2, "reviewPId");
            return (Criteria) this;
        }

        public Criteria andPersionIdIsNull() {
            addCriterion("PERSION_ID is null");
            return (Criteria) this;
        }

        public Criteria andPersionIdIsNotNull() {
            addCriterion("PERSION_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPersionIdEqualTo(Integer value) {
            addCriterion("PERSION_ID =", value, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdNotEqualTo(Integer value) {
            addCriterion("PERSION_ID <>", value, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdGreaterThan(Integer value) {
            addCriterion("PERSION_ID >", value, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PERSION_ID >=", value, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdLessThan(Integer value) {
            addCriterion("PERSION_ID <", value, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdLessThanOrEqualTo(Integer value) {
            addCriterion("PERSION_ID <=", value, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdIn(List<Integer> values) {
            addCriterion("PERSION_ID in", values, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdNotIn(List<Integer> values) {
            addCriterion("PERSION_ID not in", values, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdBetween(Integer value1, Integer value2) {
            addCriterion("PERSION_ID between", value1, value2, "persionId");
            return (Criteria) this;
        }

        public Criteria andPersionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PERSION_ID not between", value1, value2, "persionId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdIsNull() {
            addCriterion("PARTTIME_ID is null");
            return (Criteria) this;
        }

        public Criteria andParttimeIdIsNotNull() {
            addCriterion("PARTTIME_ID is not null");
            return (Criteria) this;
        }

        public Criteria andParttimeIdEqualTo(Integer value) {
            addCriterion("PARTTIME_ID =", value, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdNotEqualTo(Integer value) {
            addCriterion("PARTTIME_ID <>", value, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdGreaterThan(Integer value) {
            addCriterion("PARTTIME_ID >", value, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PARTTIME_ID >=", value, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdLessThan(Integer value) {
            addCriterion("PARTTIME_ID <", value, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdLessThanOrEqualTo(Integer value) {
            addCriterion("PARTTIME_ID <=", value, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdIn(List<Integer> values) {
            addCriterion("PARTTIME_ID in", values, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdNotIn(List<Integer> values) {
            addCriterion("PARTTIME_ID not in", values, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdBetween(Integer value1, Integer value2) {
            addCriterion("PARTTIME_ID between", value1, value2, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andParttimeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PARTTIME_ID not between", value1, value2, "parttimeId");
            return (Criteria) this;
        }

        public Criteria andPPIdIsNull() {
            addCriterion("P_P_ID is null");
            return (Criteria) this;
        }

        public Criteria andPPIdIsNotNull() {
            addCriterion("P_P_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPPIdEqualTo(Integer value) {
            addCriterion("P_P_ID =", value, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdNotEqualTo(Integer value) {
            addCriterion("P_P_ID <>", value, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdGreaterThan(Integer value) {
            addCriterion("P_P_ID >", value, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("P_P_ID >=", value, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdLessThan(Integer value) {
            addCriterion("P_P_ID <", value, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdLessThanOrEqualTo(Integer value) {
            addCriterion("P_P_ID <=", value, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdIn(List<Integer> values) {
            addCriterion("P_P_ID in", values, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdNotIn(List<Integer> values) {
            addCriterion("P_P_ID not in", values, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdBetween(Integer value1, Integer value2) {
            addCriterion("P_P_ID between", value1, value2, "pPId");
            return (Criteria) this;
        }

        public Criteria andPPIdNotBetween(Integer value1, Integer value2) {
            addCriterion("P_P_ID not between", value1, value2, "pPId");
            return (Criteria) this;
        }

        public Criteria andReviewIsNull() {
            addCriterion("REVIEW is null");
            return (Criteria) this;
        }

        public Criteria andReviewIsNotNull() {
            addCriterion("REVIEW is not null");
            return (Criteria) this;
        }

        public Criteria andReviewEqualTo(String value) {
            addCriterion("REVIEW =", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewNotEqualTo(String value) {
            addCriterion("REVIEW <>", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewGreaterThan(String value) {
            addCriterion("REVIEW >", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewGreaterThanOrEqualTo(String value) {
            addCriterion("REVIEW >=", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewLessThan(String value) {
            addCriterion("REVIEW <", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewLessThanOrEqualTo(String value) {
            addCriterion("REVIEW <=", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewLike(String value) {
            addCriterion("REVIEW like", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewNotLike(String value) {
            addCriterion("REVIEW not like", value, "review");
            return (Criteria) this;
        }

        public Criteria andReviewIn(List<String> values) {
            addCriterion("REVIEW in", values, "review");
            return (Criteria) this;
        }

        public Criteria andReviewNotIn(List<String> values) {
            addCriterion("REVIEW not in", values, "review");
            return (Criteria) this;
        }

        public Criteria andReviewBetween(String value1, String value2) {
            addCriterion("REVIEW between", value1, value2, "review");
            return (Criteria) this;
        }

        public Criteria andReviewNotBetween(String value1, String value2) {
            addCriterion("REVIEW not between", value1, value2, "review");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagIsNull() {
            addCriterion("ANONYMITY_FLAG is null");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagIsNotNull() {
            addCriterion("ANONYMITY_FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagEqualTo(Integer value) {
            addCriterion("ANONYMITY_FLAG =", value, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagNotEqualTo(Integer value) {
            addCriterion("ANONYMITY_FLAG <>", value, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagGreaterThan(Integer value) {
            addCriterion("ANONYMITY_FLAG >", value, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("ANONYMITY_FLAG >=", value, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagLessThan(Integer value) {
            addCriterion("ANONYMITY_FLAG <", value, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagLessThanOrEqualTo(Integer value) {
            addCriterion("ANONYMITY_FLAG <=", value, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagIn(List<Integer> values) {
            addCriterion("ANONYMITY_FLAG in", values, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagNotIn(List<Integer> values) {
            addCriterion("ANONYMITY_FLAG not in", values, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagBetween(Integer value1, Integer value2) {
            addCriterion("ANONYMITY_FLAG between", value1, value2, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andAnonymityFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("ANONYMITY_FLAG not between", value1, value2, "anonymityFlag");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andDelIsNull() {
            addCriterion("DEL is null");
            return (Criteria) this;
        }

        public Criteria andDelIsNotNull() {
            addCriterion("DEL is not null");
            return (Criteria) this;
        }

        public Criteria andDelEqualTo(Integer value) {
            addCriterion("DEL =", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelNotEqualTo(Integer value) {
            addCriterion("DEL <>", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelGreaterThan(Integer value) {
            addCriterion("DEL >", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEL >=", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelLessThan(Integer value) {
            addCriterion("DEL <", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelLessThanOrEqualTo(Integer value) {
            addCriterion("DEL <=", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelIn(List<Integer> values) {
            addCriterion("DEL in", values, "del");
            return (Criteria) this;
        }

        public Criteria andDelNotIn(List<Integer> values) {
            addCriterion("DEL not in", values, "del");
            return (Criteria) this;
        }

        public Criteria andDelBetween(Integer value1, Integer value2) {
            addCriterion("DEL between", value1, value2, "del");
            return (Criteria) this;
        }

        public Criteria andDelNotBetween(Integer value1, Integer value2) {
            addCriterion("DEL not between", value1, value2, "del");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}